package com.yuanqi.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanqi.Common.Pojo.Dto.TopicDto;
import com.yuanqi.Common.Pojo.Vo.PostDetail;
import com.yuanqi.Common.Pojo.Vo.PostVo;
import com.yuanqi.Common.Pojo.Vo.TopicVo;
import com.yuanqi.Common.Pojo.entity.Topic;
import com.yuanqi.Common.Pojo.entity.TopicClass;

import java.text.ParseException;
import java.util.List;

public interface TopicService extends IService<Topic> {
    List<TopicClass> getlist();

    List<PostVo> getpostList(Integer topicId, Integer current,Boolean isTime,Long userId) throws InterruptedException;

    List<TopicVo> SearchTopic(TopicDto topicDto) throws ParseException, InterruptedException;

    List<TopicVo> getHotTopic(Integer current) throws ParseException;

    List<TopicVo> getTopicByClassId(Integer current, Integer classId) throws ParseException, InterruptedException;
}
